<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglab.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv=Content-Type content="text/html; charset=utf-8" />
		<link href="${pageContext.request.contextPath}/pages/jtext/css/style.css" type="text/css" rel="stylesheet" />
		<title>编辑文本</title>
		<script src="${pageContext.request.contextPath}/pages/jtext/js/JtextCommon.js"></script>
		<script src="${pageContext.request.contextPath}/pages/jtext/js/JtextEdit.js"></script>
	
	</head>
	<body topMargin="10">
		<div id="append_parent"></div>
		<table cellSpacing="6" cellPadding="2" width="100%" border="0">
			<tbody>
				<tr>
					<td>
						<table class="guide" cellSpacing="0" cellPadding="0" width="100%"
							border="0">
							<tbody>
								<tr>
									<td>
										Memory的CRUD
									</td>
								</tr>
							</tbody>
						</table>
						<br />
						<s:form action="editJtext" namespace="/jtext">
							<input type="hidden" name="page.index" value="${page.index}"/>
							<input type="hidden" name="page.size" value="${page.size}"/>
							<input type="hidden" name="jtext.id"
								value="${jtext.id }" />
							<table class="tableborder" cellSpacing="0" cellPadding="0"
								width="100%" border="0">
								<tbody>
									<tr class="header">
										<td colSpan="3">
											添加文本
										</td>
									</tr>
								</tbody>
								<tbody>
									<!--<tr>
										<td class="altbg1" width="20%">
											<b>文本类型:</b>
										</td>
										<td class="altbg2" valign="middle" width="70%">
											<select id="textType" name="" onchange="">
												<option value="jtext">简单文本</option>
												<option value="jmsg">报文</option>
												<option value="jnote">笔记</option>
												<option value="jexception">异常</option>
											</select>
										</td>
										<td>
											<span style="color: red"> </span>
										</td>
									</tr>
									--><tr>
										<td class="altbg1" width="20%">
											<b>名称:</b>
										</td>
										<td class="altbg2" width="70%">
											<input type="text" name="jtext.name" value="${jtext.name }"/>
										</td>
										<td>
											<span style="color: red"> </span>
										</td>
									</tr>
									<tr>
										<td class="altbg1" width="20%">
											<b>内容:</b>
										</td>
										<td class="altbg2" width="70%">
											<textarea name="jtext.content" rows="20" cols="100">${jtext.content }</textarea>
										</td>
										<td>
											<span style="color: red"></span>
										</td>
									</tr>
									
								</tbody>
							</table>
						
							<br />
							<center>
								<input class="button" type="button" value="取消"
									name="settingsubmit" onclick="history.back(-1);" />
								<input class="button" type="reset" value="重置"
									name="settingsubmit" />
								<input class="button" type="submit" value="提 交"
									name="settingsubmit" onclick="return checkForm()" />
							</center>
						</s:form>
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>
